import { RemoteFile } from "@ugeez/frontend-commons/lib/types";
import { parseFileExt } from "@ugeez/frontend-commons/lib/utils";

export const convertStringToRemoteFile = (key:string): RemoteFile => {
    return {
        key,
        filename: key,
        ext: parseFileExt(key),
    };
}